<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>index</title>
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <link href="__PUBLIC__/css/comm.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/hangye.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/ads.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/panel.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/js/auto/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
        <script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
        <script src="__PUBLIC__/js/LanternN.js" type="text/javascript"></script>
    </head>
    <body>
        <div class="containner">
            <include file="Index:header"/>
            <!--导航结束--> 
            <div class="body-center">
                <div class="path">
	         首页 >> 行业名称
                </div>
                <div class="searchPanel" style="position:relative;">
                    <div class="selects" >
                        <div class="select_left" id="brandSelect_Btn">
                            <div class="select_right">
                                <div class="select_middle" id=""><input type="text" value="品牌" id="brand_input" style="border:0px;color:gray;height:20px;" onclick="autoContent('__APP__/Home/Share/autoBrand/','brand_input');"/></div>
                            </div>
                        </div>
                        <div class="select_left" id="categorySelect_Btn">
                            <div class="select_right">
                                <div class="select_middle" id=""><input type="text" id="category_input" value="品类" style="border:0px;color:gray;height:20px;" onclick="autoContent('__APP__/Home/Share/autoCategory/','category_input');"/></div>
                            </div>
                        </div>
                        <div class="select_left" id="commditySelect_Btn">
                            <div class="select_right">
                                <div class="select_middle" id=""><input type="text" id="commodity_input" value="品名" style="border:0px;color:gray;height:20px;" onclick="autoContent('__APP__/Home/Share/autoCommodity/','commodity_input');"/></div>
                            </div>
                        </div>
                        <div id="searchShangp"><img style="float:left" src="__PUBLIC__/images/searchShangp.gif"></div>
                        <input type="hidden" id="id" name="id" value="{$id}">

                    </div>
                    <div id="brandPanel">
                        <div class="abc_index" id="abcIndex">拼音索引》<span index="A"><a href="#">A</a></span><span index="B"><a href="#">B</a></span><span index="C"><a>C</a></span><span index="D"><a>D</a></span><span index="E"><a>E</a></span><span index="F"><a>F</a></span> <span index="G"><a>G</a></span><span index="H"><a>H</a></span><span index="I"><a>I</a></span><span index="J"><a>J</a></span><span index="K"><a>K</a></span><span index="L"><a>L</a></span><span index="M"><a>M</a></span><span index="N"><a>N</a></span><span index="O"><a>O</a></span><span index="P"><a>P</a></span><span index="Q"><a>Q</a></span><span index="R"><a>R</a></span><span index="S"><a>S</a></span><span index="T"><a>T</a></span><span index="U"><a>U</a></span><span index="V"><a>V</a></span><span index="W"><a>W</a></span><span index="X"><a>X</a></span><span index="Y"><a>Y</a></span><span index="Z"><a>Z</a></span></div>
                        <div class="search_history" id="searchHistory">搜索历史：<div class="search_history_close" id="closeHistory" title="关闭搜索历史，重新搜索"></div></div><div class="brand_list" id="brandList"></div>
                    </div>
                    <div id="categoryPanel">
                        <div class="tree" id="categoryTree">

                        </div>
                    </div>
                    <div id="commdityMenu" class="inbox">

                    </div>
                </div>
                <div class="ad">

                    <SCRIPT type=text/javascript>
                            document.lanterninfo=function(){
                            Lanterninfo=new Array();
                            Lanterninfo=[
                            <volist name="ad_info" id="one">
                                    ['{$one.img}','{$one.title}','{$one.url}'],
                                        </volist>
                                    ];
                                return Lanterninfo;
                            }   
                    </SCRIPT>
                    <div id=lantern>
                        <div id=lanternMain>
                            <div id=lanternImg>
                                <div style="Z-INDEX: 100; WIDTH: 500px; BORDER-BOTTOM: #ffffff 1px solid; POSITION: absolute; TOP: 251px; HEIGHT: 2px">
                                    <img id=lanternPoint style="POSITION: absolute" src="__PUBLIC__/ad/lanternpoint.gif" />
                                </div>
                            </div>
                        </div>
                        <div id=lanternNavy></div>
                        <script type=text/javascript>
                                Lantern.info=parent.document.lanterninfo();
                                Lantern.init();
                    </script>
                </div>

            </div>
            <div class="hangyebillboard">
            <div class="head">
            <span class="title">商品排行榜</span>
            </div>
            </div>

            <div class="billContent" id="billContent">
            <volist name="commodity_list" id="commodity">
            <div class="billItems">
            <div class="num {$i}"></div>
            <div class="billmessage">
            <div class="brandName">
            <img width="50" height="50" src="{$commodity.brand.brand_img|default='__ROOT__/Public/images/default_logo.jpg'}"/>
            <div>{$commodity.brand.name}</div>
            </div>
            <div style="height:100px;width:100px;background:gray">
            <img width="100" height="100" src="{$commodity.img|default='__ROOT__/Public/images/default_products.jpg'}"/>
            </div>
            <div class="message">
            <ul>
            <li><span class="name"><a href="__APP__/Home/Share/ShareList/commodity_id/{$commodity.id}">{$commodity.name}</a></span></li>
            <li>发表印象：<span class="yellow">{$commodity.brand_num}</span></li>
            <li>评分:<span class="yellow">{$commodity.score}</span>分</li>
            </ul>

            </div>
            </div>
            </div>
            </volist>
                
            </div>
            </div>
       
            <script src="__PUBLIC__/js/hangye.js" type="text/javascript"></script>
                <script src="__PUBLIC__/js/tree.js" type="text/javascript"></script>
                <script type="text/javascript" src="__PUBLIC__/js/auto/jquery.autocomplete.js"></script>

                <include file="Index:bottom" />
                <!--页尾部分-->
            </div>
            </body>
            </html>
            <script>
            function autoContent(url,obj){
            if($("#"+obj).val() == '品牌' || $("#"+obj).val() == '品类' ||$("#"+obj).val() == '品名'){
                $("#"+obj).val('');
            }
            bValue = null;
            cValue = null;
            if(obj=='category_input'){
                bValue = $("#brand_input").val();
            }
            else if(obj=='commodity_input'){
                cValue = $("#category_input").val();
                bValue = $("#brand_input").val();
            }
            $("#"+obj).autocomplete(url, {
                width: 230,
                max:10,
                dataType: "json",
                autoFill :false,
                minChars:0,
                selectFirst:false,
                extraParams: {b:bValue,c:cValue},
                scrollHeight: 300,
                parse: function(data) {
                    //alert(data);
                    if(data.length >=1){
                        return $.map(eval(data), function(row) {
                            res = row.split('-');
                            return {
                                data: row,
                                value: res[1] ,
                                result: res[1]
                            }
                        });
                    }
                },
                formatItem: function(item) {
                    if(item.length > 1){
                        item = item.split('-');
                        return "<table width='90%'><tr><td align = \"left\">" + item[0] +"</td>"+"<td align = \"right\">"+ item[1]+"</td></tr></table>";
                    }
                }
            });
            }
            </script>